package com.wulijie.decorate;

/**
 * @Author cui
 * @Data
 */
public class ClientDecorate {
    public static void main(String[] args) {
        Drink coffee = new AmCoffee();
        Drink milk = new Milk(coffee);
        Drink sugar = new Sugar(milk);
        System.err.println(sugar.getName());
        System.err.println(sugar.cost());
    }
}
